-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Serverless] Fix truncation in breadcrumbs #171770
[Serverless] Fix truncation in breadcrumbs #171770
Conversation
@@ -62,6 +62,17 @@ const getHeaderCss = ({ size }: EuiThemeComputed) => ({ | |||
top: 2px; | |||
`, | |||
}, | |||
leftHeaderSection: css` | |||
// needed to enable breadcrumbs truncation | |||
min-width: 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pinging @elastic/appex-sharedux (Team:SharedUX) |
💛 Build succeeded, but was flaky
Failed CI Steps
Metrics [docs]Async chunks
Page load bundle
HistoryTo update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whilst I'd hoped we wouldn't have this component accept props that are presentational, I think this specific use case highlights that it's current implementation will at some point run into limitations.
Well done @Dosant! Tested locally, changes LGTM;
Summary
Fix truncation in breadcrumbs when the header doesn't fit: https://css-tricks.com/flexbox-truncated-text/
I noticed this issue while working on #170758
(look at breadcrumbs)
Screen.Recording.2023-11-22.at.17.26.35.mov
Note: the root breadcrumb will be fixed with EUI update elastic/eui#7375